package com.ruoyi.basics.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 基础信息空间位置对象 t_base_space_location
 *
 * @author ruoyi
 * @date 2023-04-27
 */
public class TBaseSpaceLocation extends BaseEntity
{
    private static final long serialVersionUID = 1L;
    private String schoolName;

    public String getSchoolName() {
        return schoolName;
    }

    public void setSchoolName(String schoolName) {
        this.schoolName = schoolName;
    }

    /** $column.columnComment */
    private Long id;

    /** 学校ID */
    @Excel(name = "学校ID")
    private String schoolId;

    /** 位置名称 */
    @Excel(name = "位置名称")
    private String locationName;

    /** 层级名称 如 3栋-4楼-101室 */
    @Excel(name = "层级名称 如 3栋-4楼-101室")
    private String levelName;

    /** 层级 */
    @Excel(name = "层级")
    private String level;

    /** 上级位置id */
    @Excel(name = "上级位置id")
    private Long locationPid;

    /** 状态 0-无效 1-有效 */
    @Excel(name = "状态 0-无效 1-有效")
    private String status;

    /** 空间平面图 */
    @Excel(name = "空间平面图")
    private String spaceImg;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date modifyTime;

    /** 修改人 */
    @Excel(name = "修改人")
    private String modifyBy;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setSchoolId(String schoolId)
    {
        this.schoolId = schoolId;
    }

    public String getSchoolId()
    {
        return schoolId;
    }
    public void setLocationName(String locationName)
    {
        this.locationName = locationName;
    }

    public String getLocationName()
    {
        return locationName;
    }
    public void setLevelName(String levelName)
    {
        this.levelName = levelName;
    }

    public String getLevelName()
    {
        return levelName;
    }
    public void setLevel(String level)
    {
        this.level = level;
    }

    public String getLevel()
    {
        return level;
    }
    public void setLocationPid(Long locationPid)
    {
        this.locationPid = locationPid;
    }

    public Long getLocationPid()
    {
        return locationPid;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setSpaceImg(String spaceImg)
    {
        this.spaceImg = spaceImg;
    }

    public String getSpaceImg()
    {
        return spaceImg;
    }
    public void setModifyTime(Date modifyTime)
    {
        this.modifyTime = modifyTime;
    }

    public Date getModifyTime()
    {
        return modifyTime;
    }
    public void setModifyBy(String modifyBy)
    {
        this.modifyBy = modifyBy;
    }

    public String getModifyBy()
    {
        return modifyBy;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("schoolId", getSchoolId())
            .append("locationName", getLocationName())
            .append("levelName", getLevelName())
            .append("level", getLevel())
            .append("locationPid", getLocationPid())
            .append("status", getStatus())
            .append("spaceImg", getSpaceImg())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("modifyTime", getModifyTime())
            .append("modifyBy", getModifyBy())
            .toString();
    }
}
